package com.xuecheng.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuecheng.user.model.po.XcMenu;
import com.xuecheng.user.model.po.XcUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * user表 Mapper 接口
 * </p>
 *
 * @author 勾新杰
 * @since 2025-02-20
 */
public interface XcUserMapper extends BaseMapper<XcUser> {

    /**
     * 根据用户id查询用户权限
     * @param userId 用户id
     * @return 权限
     */
    List<XcMenu> selectPermissionByUserId(@Param("userId") String userId);
}
